const PositionModel  = require("../../db/position");

class PositionSql {
  getPostions() {
    return PositionModel.find();
  }
  addPostion(data) {
    return new PositionModel(data).save() 
  }
  deletePosition(id) {
    return PositionModel.findByIdAndDelete(id)
  }
}
module.exports = PositionSql